package edu.bbu.commonproject.desktop.client.model;

/**
 * The directory pojo class.
 */
public class DirectoryPOJO
{
	/** The directory owner. */
	private String owner;
	
	/** The directory name. */
	private String directoryName;
	
	/** The path of the parrent directory. */
	private String parrentDirectory;
	
	/**
	 * The default constructor.
	 */
	public DirectoryPOJO()
	{
		owner = "";
		directoryName = "";
	}
	
	/**
	 * The constructor with parameters.
	 * @param owner the directory owner.
	 * @param directoryName the direcory name.
	 */
	public DirectoryPOJO(String owner, String directoryName)
	{
		this.owner = owner;
		this.directoryName = directoryName;
	}
	
	/**
	 * Setting the owner.
	 * @param owner the directory owner.
	 */
	public void setOwner(String owner)
	{
		this.owner = owner;
	}
	
	/**
	 * Getting the owner.
	 * @return the directory owner.
	 */
	public String getOwner()
	{
		return owner;
	}
	
	/**
	 * Setting the directory name.
	 * @param directoryName the name of directory.
	 */
	public void setDirectoryName(String directoryName)
	{
		this.directoryName = directoryName;
	}
	
	/**
	 * Getting the directory name.
	 * @return the name of directory.
	 */
	public String getDirectoryName()
	{
		return directoryName;
	}
	
	/**
	 * Setting the parrent directory.
	 * @param parrentDirectory the parent directory path.
	 */
	public void setParrentDirectory(String parrentDirectory)
	{
		this.parrentDirectory = parrentDirectory;
	}
	
	/**
	 * Getting the parrent directory.
	 * @return the parrent directory path.
	 */
	public String getParrentDirectory()
	{
		return parrentDirectory;
	}
	
	/**
	 * Converts to String.
	 */
	public String toString()
	{
		return parrentDirectory + directoryName;
	}
}
